<%@ Page Language="VB" MasterPageFile="admin.master" AutoEventWireup="false" CodeFile="appUserConfig.aspx.vb" Inherits="admin_appUserConfig" title="Admin - Application Settings - UserID/PW Configuration" %>
<%@ Register Src="SubNavControls/AppSubNavControl.ascx" TagName="AppSubNavControl" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<uc1:AppSubNavControl ID="SubNavCtrl" runat="server" />
 <table cellpadding="0" cellspacing="0">
       <tr><td width="20px"></td><td><h1><a id="pagecontent">Admin - Application Settings - UserID/PW Configuration</a></h1> </td></tr>
       </table>
   
        <asp:ObjectDataSource ID="UserConfigObjectDataSource" runat="server"
            DeleteMethod="RemoveInstance" InsertMethod="SaveInstance" SelectMethod="Retrieve"
            TypeName="Cdm.DataCore.LookupTables.LuPasswordConfiguration" 
            DataObjectTypeName="Cdm.DataCore.LookupTables.LuPasswordConfiguration"
            UpdateMethod="UpdateInstance" >
            <SelectParameters>
                <asp:Parameter DefaultValue="22000" Name="id" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
              
        <table border="0" cellpadding="4" cellspacing="0">
            <tr>
                <td>
                    <asp:FormView ID="UserConfigFormView" runat="server" DataSourceID="UserConfigObjectDataSource" DataKeyNames="PasswordConfigurationId" Width="825px" HorizontalAlign="Center" Visible="True" DefaultMode="Edit">            
                        <InsertItemTemplate></InsertItemTemplate>
                        <EditItemTemplate>
                            <asp:Label ID="PasswordLengthLabel" runat="server" AssociatedControlID="PwdLengthTextBox" Text="# Characters in PW:" CssClass="label"></asp:Label>
                            <asp:TextBox ID="PwdLengthTextBox" Text='<%# Bind("PasswordLength") %>' runat="server" CssClass="form" Columns="10"></asp:TextBox>
                        
                            <asp:Label ID="UidLabel" runat="server" AssociatedControlID="UidLengthTextBox" Text="# Characters in UID:" CssClass="label"></asp:Label>
                            <asp:TextBox ID="UidLengthTextBox" Text='<%# Bind("UseridLength") %>' runat="server" CssClass="form" Columns="10"></asp:TextBox><br />
                        
                            <asp:Label ID="AttemptsLabel" runat="server" AssociatedControlID="AttemptsTextBox" Text="# Unsuccessful Login Attempts:" CssClass="label"></asp:Label>
                            <asp:TextBox ID="AttemptsTextBox" Text='<%# Bind("LockOutAttempts") %>' runat="server" CssClass="form" Columns="10"></asp:TextBox>
                        
                            <asp:Label ID="ExpirationLabel" runat="server" AssociatedControlID="ExpirationTextBox" Text="Password Expiration (days):" CssClass="label"></asp:Label>
                            <asp:TextBox ID="ExpirationTextBox" Text='<%# Bind("ExpirePeriod") %>' runat="server" CssClass="form" Columns="10"></asp:TextBox><br />
                        
                            <asp:Label ID="InactivityLabel" runat="server" AssociatedControlID="InactivityTextBox" Text="Logout Inactivity Period (mins):" CssClass="label"></asp:Label>
                            <asp:TextBox ID="InactivityTextBox" Text='<%# Bind("InactivityPeriod") %>' runat="server" CssClass="form" Columns="10"></asp:TextBox>
                       </EditItemTemplate>
                       <ItemTemplate></ItemTemplate>
                    </asp:FormView>
                </td>
            </tr>
            <tr>
                <td>
                    
                </td>
            </tr>
            <tr>
            <td align="Center"> <asp:Button ID="SubmitButton" runat="server" Text="Submit" />
                                <asp:Button ID="CancelButton" runat="server" Text="Cancel" />
                                <asp:Label ID="MessageLabel" runat="server"  ForeColor="Red" CssClass="statusLabel"></asp:Label>
</td></tr>
        </table> 
    
</asp:Content>